package display {
	import flare.display.DirtySprite;
	
	import flash.display.Sprite;

//	[SWF(frameRate='20')]
	public class GoogleParticleSprite extends Sprite {
		private var particles:Array = [];
		public function GoogleParticleSprite() {
			super();
			loadParticleData();
		}
		private function loadParticleData():void {
			var width:Number = 200;
			createParticle(24-1+width/2 - 138, 16-1+120 - 55,2,0xFF103484);
			createParticle(32-1+width/2 - 138, 16-1+120 - 55,2,0xFFBDBEBD);
			createParticle(40-1+width/2 - 138, 16-1+120 - 55,2,0xFFBDBABD);
			createParticle(48-1+width/2 - 138, 16-1+120 - 55,2,0xFF6379A4);
			createParticle(56-1+width/2 - 138, 16-1+120 - 55,2,0xFF1851CE);
			createParticle(208-1+width/2 - 138, 16-1+120 - 55,2,0xFFDEDFE7);
			createParticle(216-1+width/2 - 138, 16-1+120 - 55,2,0xFF085108);
			createParticle(16-1+width/2 - 138, 24-1+120 - 55,2,0xFF082463);
			createParticle(24-1+width/2 - 138, 24-1+120 - 55,2,0xFFE7E7E7);
			createParticle(56-1+width/2 - 138, 24-1+120 - 55,2,0xFF7B86AD);
			createParticle(64-1+width/2 - 138, 24-1+120 - 55,2,0xFFE7E7E7);
			createParticle(216-1+width/2 - 138, 24-1+120 - 55,2,0xFF085108);
			createParticle(8-1+width/2 - 138, 32-1+120 - 55,2,0xFF6396EF);
			createParticle(16-1+width/2 - 138, 32-1+120 - 55,2,0xFFB5B2B5);
			createParticle(88-1+width/2 - 138, 32-1+120 - 55,2,0xFFB52410);
			createParticle(96-1+width/2 - 138, 32-1+120 - 55,2,0xFFE74931);
			createParticle(136-1+width/2 - 138, 32-1+120 - 55,2,0xFFBD9600);
			createParticle(144-1+width/2 - 138, 32-1+120 - 55,2,0xFFEFBA00);
			createParticle(184-1+width/2 - 138, 32-1+120 - 55,2,0xFF5A8AEF);
			createParticle(192-1+width/2 - 138, 32-1+120 - 55,2,0xFF3971DE);
			createParticle(200-1+width/2 - 138, 32-1+120 - 55,2,0xFF103484);
			createParticle(216-1+width/2 - 138, 32-1+120 - 55,2,0xFF085108);
			createParticle(240-1+width/2 - 138, 32-1+120 - 55,2,0xFFD62408);
			createParticle(248-1+width/2 - 138, 32-1+120 - 55,2,0xFFE74931);
			createParticle(264-1+width/2 - 138, 32-1+120 - 55,2,0xFF6B696B);
			createParticle(272-1+width/2 - 138, 32-1+120 - 55,2,0xFF6B696B);
			createParticle(8-1+width/2 - 138, 40-1+120 - 55,2,0xFF2159D6);
			createParticle(16-1+width/2 - 138, 40-1+120 - 55,2,0xFFDEDFE7);
			createParticle(80-1+width/2 - 138, 40-1+120 - 55,2,0xFFBDB6BD);
			createParticle(104-1+width/2 - 138, 40-1+120 - 55,2,0xFFC61800);
			createParticle(128-1+width/2 - 138, 40-1+120 - 55,2,0xFFB5B6B5);
			createParticle(152-1+width/2 - 138, 40-1+120 - 55,2,0xFFD6AE00);
			createParticle(168-1+width/2 - 138, 40-1+120 - 55,2,0xFF6396EF);
			createParticle(176-1+width/2 - 138, 40-1+120 - 55,2,0xFFBDBABD);
			createParticle(192-1+width/2 - 138, 40-1+120 - 55,2,0xFF1851CE);
			createParticle(200-1+width/2 - 138, 40-1+120 - 55,2,0xFFEFEFEF);
			createParticle(216-1+width/2 - 138, 40-1+120 - 55,2,0xFF085108);
			createParticle(232-1+width/2 - 138, 40-1+120 - 55,2,0xFFBD2C18);
			createParticle(240-1+width/2 - 138, 40-1+120 - 55,2,0xFFE7E7E7);
			createParticle(256-1+width/2 - 138, 40-1+120 - 55,2,0xFF8C1000);
			createParticle(8-1+width/2 - 138, 48-1+120 - 55,2,0xFF1851CE);
			createParticle(16-1+width/2 - 138, 48-1+120 - 55,2,0xFFDEDBDE);
			createParticle(72-1+width/2 - 138, 48-1+120 - 55,2,0xFFFF7563);
			createParticle(80-1+width/2 - 138, 48-1+120 - 55,2,0xFFC6BEBD);
			createParticle(104-1+width/2 - 138, 48-1+120 - 55,2,0xFFE74931);
			createParticle(112-1+width/2 - 138, 48-1+120 - 55,2,0xFF6B2C21);
			createParticle(120-1+width/2 - 138, 48-1+120 - 55,2,0xFFFFCF00);
			createParticle(128-1+width/2 - 138, 48-1+120 - 55,2,0xFFC6BEBD);
			createParticle(152-1+width/2 - 138, 48-1+120 - 55,2,0xFFFFCF00);
			createParticle(160-1+width/2 - 138, 48-1+120 - 55,2,0xFF847539);
			createParticle(168-1+width/2 - 138, 48-1+120 - 55,2,0xFF3971DE);
			createParticle(176-1+width/2 - 138, 48-1+120 - 55,2,0xFFE7E3E7);
			createParticle(192-1+width/2 - 138, 48-1+120 - 55,2,0xFF5A8AEF);
			createParticle(200-1+width/2 - 138, 48-1+120 - 55,2,0xFFB5B2B5);
			createParticle(216-1+width/2 - 138, 48-1+120 - 55,2,0xFF085108);
			createParticle(232-1+width/2 - 138, 48-1+120 - 55,2,0xFF8C1000);
			createParticle(240-1+width/2 - 138, 48-1+120 - 55,2,0xFFC61800);
			createParticle(248-1+width/2 - 138, 48-1+120 - 55,2,0xFFCECFCE);
			createParticle(256-1+width/2 - 138, 48-1+120 - 55,2,0xFFD6D7D6);
			createParticle(8-1+width/2 - 138, 56-1+120 - 55,2,0xFF1851CE);
			createParticle(16-1+width/2 - 138, 56-1+120 - 55,2,0xFF103C94);
			createParticle(48-1+width/2 - 138, 56-1+120 - 55,2,0xFFD6DBDD);
			createParticle(56-1+width/2 - 138, 56-1+120 - 55,2,0xFF4A7DE7);
			createParticle(64-1+width/2 - 138, 56-1+120 - 55,2,0xFFBDBABD);
			createParticle(72-1+width/2 - 138, 56-1+120 - 55,2,0xFFE73C21);
			createParticle(80-1+width/2 - 138, 56-1+120 - 55,2,0xFFB5B2B5);
			createParticle(104-1+width/2 - 138, 56-1+120 - 55,2,0xFFF79684);
			createParticle(112-1+width/2 - 138, 56-1+120 - 55,2,0xFF847D73);
			createParticle(120-1+width/2 - 138, 56-1+120 - 55,2,0xFFEFBA00);
			createParticle(128-1+width/2 - 138, 56-1+120 - 55,2,0xFFB5B2B5);
			createParticle(152-1+width/2 - 138, 56-1+120 - 55,2,0xFFF7DF5A);
			createParticle(160-1+width/2 - 138, 56-1+120 - 55,2,0xFF94928C);
			createParticle(168-1+width/2 - 138, 56-1+120 - 55,2,0xFF949EB5);
			createParticle(176-1+width/2 - 138, 56-1+120 - 55,2,0xFF083CA5);
			createParticle(192-1+width/2 - 138, 56-1+120 - 55,2,0xFF103C94);
			createParticle(200-1+width/2 - 138, 56-1+120 - 55,2,0xFFD6D3D6);
			createParticle(216-1+width/2 - 138, 56-1+120 - 55,2,0xFF085108);
			createParticle(232-1+width/2 - 138, 56-1+120 - 55,2,0xFFAD1400);
			createParticle(16-1+width/2 - 138, 64-1+120 - 55,2,0xFF1849B5);
			createParticle(24-1+width/2 - 138, 64-1+120 - 55,2,0xFF3961B5);
			createParticle(56-1+width/2 - 138, 64-1+120 - 55,2,0xFF6396EF);
			createParticle(64-1+width/2 - 138, 64-1+120 - 55,2,0xFFB5B2AD);
			createParticle(72-1+width/2 - 138, 64-1+120 - 55,2,0xFFF7F3EF);
			createParticle(80-1+width/2 - 138, 64-1+120 - 55,2,0xFFAD1400);
			createParticle(104-1+width/2 - 138, 64-1+120 - 55,2,0xFFBD2C18);
			createParticle(112-1+width/2 - 138, 64-1+120 - 55,2,0xFFCECBCE);
			createParticle(120-1+width/2 - 138, 64-1+120 - 55,2,0xFFF7F3EF);
			createParticle(128-1+width/2 - 138, 64-1+120 - 55,2,0xFFBD9600);
			createParticle(152-1+width/2 - 138, 64-1+120 - 55,2,0xFFBD9600);
			createParticle(160-1+width/2 - 138, 64-1+120 - 55,2,0xFFC6C3C6);
			createParticle(176-1+width/2 - 138, 64-1+120 - 55,2,0xFFCECBCE);
			createParticle(184-1+width/2 - 138, 64-1+120 - 55,2,0xFF3165D6);
			createParticle(192-1+width/2 - 138, 64-1+120 - 55,2,0xFFBDBEBD);
			createParticle(216-1+width/2 - 138, 64-1+120 - 55,2,0xFF006500);
			createParticle(232-1+width/2 - 138, 64-1+120 - 55,2,0xFFC61800);
			createParticle(240-1+width/2 - 138, 64-1+120 - 55,2,0xFFC61800);
			createParticle(24-1+width/2 - 138, 72-1+120 - 55,2,0xFF73798C);
			createParticle(32-1+width/2 - 138, 72-1+120 - 55,2,0xFF103484);
			createParticle(40-1+width/2 - 138, 72-1+120 - 55,2,0xFF1845AD);
			createParticle(48-1+width/2 - 138, 72-1+120 - 55,2,0xFF103C94);
			createParticle(56-1+width/2 - 138, 72-1+120 - 55,2,0xFFC6C3C6);
			createParticle(64-1+width/2 - 138, 72-1+120 - 55,2,0xFFBDB6BD);
			createParticle(80-1+width/2 - 138, 72-1+120 - 55,2,0xFFD6D7D6);
			createParticle(88-1+width/2 - 138, 72-1+120 - 55,2,0xFFADB2B5);
			createParticle(96-1+width/2 - 138, 72-1+120 - 55,2,0xFFDEE3E7);
			createParticle(104-1+width/2 - 138, 72-1+120 - 55,2,0xFFC6C3C6);
			createParticle(128-1+width/2 - 138, 72-1+120 - 55,2,0xFFDEDBDE);
			createParticle(136-1+width/2 - 138, 72-1+120 - 55,2,0xFFADB2B5);
			createParticle(144-1+width/2 - 138, 72-1+120 - 55,2,0xFFDEE3E7);
			createParticle(152-1+width/2 - 138, 72-1+120 - 55,2,0xFFC6C3C6);
			createParticle(176-1+width/2 - 138, 72-1+120 - 55,2,0xFF184DC6);
			createParticle(184-1+width/2 - 138, 72-1+120 - 55,2,0xFF294994);
			createParticle(192-1+width/2 - 138, 72-1+120 - 55,2,0xFF1849B5);
			createParticle(216-1+width/2 - 138, 72-1+120 - 55,2,0xFFA5A2A5);
			createParticle(224-1+width/2 - 138, 72-1+120 - 55,2,0xFFCECBCE);
			createParticle(240-1+width/2 - 138, 72-1+120 - 55,2,0xFFA5A6A5);
			createParticle(248-1+width/2 - 138, 72-1+120 - 55,2,0xFF9C9E9C);
			createParticle(256-1+width/2 - 138, 72-1+120 - 55,2,0xFFBDBABD);
			createParticle(168-1+width/2 - 138, 80-1+120 - 55,2,0xFF082463);
			createParticle(176-1+width/2 - 138, 80-1+120 - 55,2,0xFFEFEBEF);
			createParticle(192-1+width/2 - 138, 80-1+120 - 55,2,0xFFE7E7E7);
			createParticle(200-1+width/2 - 138, 80-1+120 - 55,2,0xFF103484);
			createParticle(168-1+width/2 - 138, 88-1+120 - 55,2,0xFF103C94);
			createParticle(200-1+width/2 - 138, 88-1+120 - 55,2,0xFF9C9A9C);
			createParticle(168-1+width/2 - 138, 96-1+120 - 55,2,0xFFBDB6BD);
			createParticle(176-1+width/2 - 138, 96-1+120 - 55,2,0xFF1845AD);
			createParticle(184-1+width/2 - 138, 96-1+120 - 55,2,0xFF2951B5);
			createParticle(192-1+width/2 - 138, 96-1+120 - 55,2,0xFFCECFCE);
			createParticle(200-1+width/2 - 138, 96-1+120 - 55,2,0xFFE7E7E7);
			
			for (var i:int = 0; i < particles.length; ++i) {
				//					for (var i:int = 0; i < 1; ++i) {
				//					vis_.stage.addChild(particles[i]);
				this.addChild(particles[i]);
//				new ParticleSprite
//				new ParticleSprite();
				//					vis_.root.addChild();
			}
			
		}
		private function createParticle(x:int, y:int, r:Number, c:int):void {
			var p:ParticleSprite = new ParticleSprite(x, y, r, c);
			
			particles.push(p);
		}
	}
}